package com.by.api.product;

import com.by.api.product.bean.StockBean;
import com.by.common.bean.ResultBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "by-product")
public interface SpuRemoteClient {

    /**
     * 更新库存
     * @param beanList
     * @return
     */
    @PutMapping("/feign/stock")
    ResultBean updateStock(@RequestBody List<StockBean> beanList);
}
